<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
	<div class="navbar-header">
	  <span class="navbar-brand">行事历管理</span>
	</div>
	<eq name="isAdmin" value="1">
	<div id="navbar" class="navbar-collapse collapse navbar-right">
		<span class="navbar-brand">欢迎 {$username|ucfirst}</span> 
		<a href="{:U('Index/logout')}" class="btn btn-danger pull-right" style="margin-top:8px;">退出</a>
	</div>
	<else/>
	<div id="navbar" class="navbar-collapse collapse">
	  <form class="navbar-form navbar-right" role="form" method="POST" action="{:U('Index/login')}">
		<div class="form-group">
			<label class="sr-only" for="loginEmail">用户名</label>
			<input type="text" placeholder="Email" class="form-control" name="username">
		</div>
		<div class="form-group">
			<label class="sr-only" for="loginPassword">密码</label>
			<input type="password" placeholder="Password" class="form-control" name="passowrd">
		</div>
		<button type="submit" class="btn btn-success">登录</button>
	  </form>
	</div>
	</eq>
  </div>
</nav>
